package com.wanbangee.marksystem.service.imp;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanbangee.marksystem.dao.MExamMarkerDao;
import com.wanbangee.marksystem.dao.MSubjectDao;
import com.wanbangee.marksystem.entities.MExamMarker;

@Service
public class QualityCheckServiceImp implements com.wanbangee.marksystem.service.QualityCheckService {
	
	@Autowired
	private MExamMarkerDao mExamMarkerDao;
	
	@Autowired
	private MSubjectDao mSubjectDao;
	
	@Override
	public List<MExamMarker> getMExamMarkerInfoByExamIdExamSubIdTopicNo(Integer examId,Integer examSubId,Integer topicNo) {
		
		return mExamMarkerDao.selectMExamMarkerInfoByExamIdExamSubIdTopicNo(examId, examSubId, topicNo);
	}

	@Override
	public Integer selectIsPrincipalTea(Integer examId, Integer examSubId, Integer teaId) {
		return mSubjectDao.selectIsPrincipalTeaByExamIdAndSubIdAndTeaId(examId, examSubId, teaId);
	}

	@Override
	public MExamMarker selectMExamMarkerByMarkerId(Integer markerId) {
		return mExamMarkerDao.selectMExamMarkerByMarkerId(markerId);
	}

	@Override
	public List<MExamMarker> selectMExamMarkerList(Integer examId, Integer examSubId, Integer topicNo) {
		return mExamMarkerDao.selectMExamMarkerList(examId, examSubId, topicNo);
	}

	@Override
	public List<MExamMarker> selectMExamMarkerByTeaIdAndSchId(Integer schId, Integer teaId) {
		return mExamMarkerDao.selectMExamMarkerByTeaIdAndSchId(schId, teaId);
	}

	
	
}
